using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
namespace prDe_Tai.DuLieu
{
    class XoaDuLieu
    {
        public void xoadulieutrongbang_DanhSachPhanMem(string tenphanmem)
        {
            OleDbConnection con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=QuanLyPhanMem.mdb");
            OleDbCommand com = new OleDbCommand();
            com.Connection = con;
            com.CommandType = CommandType.Text;
            com.CommandText = "delete from DanhSachPhanMem where tenphanmem=?";
            com.Parameters.Add("?", OleDbType.BSTR).Value = tenphanmem;
            con.Open();
            com.ExecuteNonQuery();
            con.Close();
        }
        public void xoadulieutrongbang_DanhSachBoSuuTap(string tenphanmem)
        {
            OleDbConnection con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=QuanLyPhanMem.mdb");
            OleDbCommand com = new OleDbCommand();
            com.Connection = con;
            com.CommandType = CommandType.Text;
            com.CommandText = "delete from DanhSachBoSuuTap where tenphanmem=?";
            com.Parameters.Add("?", OleDbType.BSTR).Value = tenphanmem;
            con.Open();
            com.ExecuteNonQuery();
            con.Close();
        }
    }
}
